Skip to content

fix: cap DFS, add WINDOW clause and trailing comma support#24

Merged
emrberk merged 1 commit intomasterfrom
fix/perf-issues-on-autosuggest
Apr 22, 2026
Merged

fix: cap DFS, add WINDOW clause and trailing comma support#24
emrberk merged 1 commit intomasterfrom
fix/perf-issues-on-autosuggest

Conversation

@emrberk
Copy link
Copy Markdown
Collaborator

@emrberk emrberk commented Apr 22, 2026

  • Named WINDOW clause: SELECT ... WINDOW w AS (...) — supports multiple windows, inheritance (WINDOW w2 AS (w1 ROWS BETWEEN ...)), and inline/named mixing. Matches QuestDB's Java parser (feat(sql): window definition questdb#6746).
  • Trailing comma in select list: SELECT a, b, FROM t now parses cleanly, matching QuestDB runtime behavior.
  • Autocomplete no longer hangs on malformed input: the content-assist DFS now aborts after 500k explored paths. Fixes page freezes on user queries with unbalanced parens, unsupported clauses, or stray terminators (verified: empirically, unguarded cases take 12+ seconds and hang the test worker autocomplete-perf.test.ts).
  • OVER w round-trip fix: named-window references were previously lost in the AST and serialized as OVER (). Now preserved end-to-end.
  • WINDOW keyword surfaces in autocomplete alongside WINDOW JOIN after a FROM clause, so users can discover the new clause from the dropdown.

@emrberk emrberk merged commit e382ada into master Apr 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant